﻿using System.Xml;
using AspXslt.Handling;
using System.Web;

namespace AspXslt.Handling.Samples
{
    public class HelloWorldComponent : IComponent
    {
        public XmlDocument Execute()
        {
            XmlDocument xml = new XmlDocument();
            xml.LoadXml(@"<?xml version='1.0' encoding='utf-8'?>
<root xmlns=""urn:aspxslt:hellosample"">
  <item description='Hello' />
  <item description='World' />
  <item description='" + HttpContext.Current.Request["name"] + @"' />
</root>");
            return xml;
        }
    }
}